package com.xzit.headline.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;

import android.os.Bundle;

import com.xzit.headline.R;
import com.xzit.headline.fragment.DetailFragment;
import com.xzit.headline.fragment.HomeFragment;
import com.xzit.headline.fragment.VideoFragment;
import com.xzit.headline.fragment.sub.NewListFragment;

public class TestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_test);
        VideoFragment fragment = new VideoFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.replace(R.id.content,fragment);
        transaction.commit();
    }
}
